Function |saturating_to_i16
std/conv::|saturating_to_i16
Usage
|saturating_to_i16<T>(value)
Generics
◻ T: SaturatingToI16
Parameters
↳ value: T
Return
↴ i16
Turns data into i16, saturating if needed.
This function makes a saturating and infaillible conversion to i16.
If incoming data represents something out of bounds for i16, then
the resulting value is set to minimum or maximum, depending what is
the closest to truth.